/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2024-01-08 09:31:44
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-02-18 16:13:17
 * @FilePath: \cxl-driving-training\src\views\column\list\config.ts
 */
export const tableConfig = {
    headerOperation: [
        {
            type: 'create',
            visible: true,
            permission: [],
            className: '',
            name: '新增',
            button: 'button',
            radioGroup: []
        }
    ],
    search: [
        {
            key: 'name',
            type: 'text',
            name: '栏目名称',
            modelValue: ''
        }
    ],
    permission: [],
    table: {
        operationWidth: '130px',
        operation: [
            {
                type: 'edit',
                visible: true,
                permission: [],
                className: '',
                name: '编辑'
            },
            {
                type: 'delete',
                visible: { property: 'status', condition: '==', value: false },
                permission: [],
                className: 'delete',
                name: '删除'
            }
        ],
        propName: {
            name: '栏目名称',
            sort: '排序',
            locationStr: '投放位置',
            typeStr: '栏目形式',
            displayFormStr: '展示形式',
            status: '状态',
            updateTime: '更新时间',
            remark: '备注'
        },
        showSummary: false,
        selection: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: false,
            permission: [],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
